package engine.geom
{

    /** Line in 2D space */
    public class Line
    {
       
        public var start:Point3D;
		public var end:Point3D;
  
		public function Line ( s:Point3D, e:Point3D ) 
		{
			start = s;
			end = e;
			//centre = start;
		}
		
		public function contains ( x:Number,y:Number ) : Boolean
		{
		    var p:Point3D = new Point3D(x,y,1);
		    var h:HalfSpace = new HalfSpace(start,end);
    		return h.inside( p );
	  	}

    }
}
